#ifndef NODETEMPEDGE_H
#define NODETEMPEDGE_H


#include"node_socket.h"
#include<QGraphicsPathItem>
#include<QWidget>



class NodeTempEdge : public QGraphicsPathItem
{
public:
    NodeTempEdge();
    NodeTempEdge(QPointF start,QPointF end,QGraphicsItem *parent = nullptr);
    NodeTempEdge(const NodeTempEdge &nodeEdge);
    void operator=(const NodeTempEdge &nodeEdge);
    ~NodeTempEdge();

    void SetEndPos(QPointF end);
    void SetStartPos(QPointF start);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
    QRectF boundingRect() const override;

    //QPainterPath shape() const override;


    QPointF start_pos;
    QPointF end_pos;
    QPainterPath *path;

//    int index;

//    NodeItem *start_item;
//    NodeItem *end_item;
//    QPointF start_socket_pos;
//    QPointF end_socket_pos;

};

#endif // NODETEMPEDGE_H





